package com.passion.context;

import com.passion.service.LogSqlService;
import com.passion.service.SchemaFieldService;
import com.passion.service.SchemaTableService;
import com.passion.service.SysDictService;
import com.passion.service.SysUriService;
import com.passion.service.SysUserService;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 类描述：标准服务Bean上下文
 *
 * @author ZhuYin
 * @since 2024年11月16日
 */
@Order
@Component
public class StdServiceContext {

    public static SchemaTableService schemaTableService;
    @Resource
    public void setSchemaTableService(SchemaTableService schemaTableService) {
        StdServiceContext.schemaTableService = schemaTableService;
    }

    public static SchemaFieldService schemaFieldService;
    @Resource
    public void setSchemaFieldService(SchemaFieldService schemaFieldService) {
        StdServiceContext.schemaFieldService = schemaFieldService;
    }

    public static SysDictService sysDictService;
    @Resource
    public void setSysDictService(SysDictService sysDictService) {
        StdServiceContext.sysDictService = sysDictService;
    }

    public static SysUserService sysUserService;
    @Resource
    public void setStdUserService(SysUserService sysUserService) {
        StdServiceContext.sysUserService = sysUserService;
    }

    public static LogSqlService logSqlService;
    @Resource
    public void setLogSqlService(LogSqlService logSqlService) {
        StdServiceContext.logSqlService = logSqlService;
    }

    public static SysUriService sysUriService;
    @Resource
    public void setSysUriService(SysUriService sysUriService) {
        StdServiceContext.sysUriService = sysUriService;
    }

}
